const ul = document.querySelector(".list ul");
const items = document.querySelectorAll(".list span");
ul.addEventListener("click", function (e) {
  const i = e.target.dataset.id;
  if (e.target.tagName === "SPAN") {
    if (items[i].classList.contains("icon-biaoqian")) {
      items[i].classList.remove("icon-biaoqian");
      items[i].classList.add("icon-biaoqian1");
    } else if (items[i].classList.contains("icon-biaoqian1")) {
      items[i].classList.remove("icon-biaoqian1");
      items[i].classList.add("icon-biaoqian");
    }
  }
});
const goBack = document.querySelector(".header-svg");
goBack.addEventListener("click", function () {
  window.history.back();
});